import {Base} from '../../utils/base.js';

class Products extends Base {
  constructor(){
    super();
  }

  // 获取商品详情
  getProductDetail(productId, callback) {
    var params = {
      url: 'product/detail/' + productId,
      sCallback: function(res){
        callback&&callback(res.data);
      }
    };
    this.request(params);
  }
}

export {Products};